package org.icosagon.core.magic;

import org.icosagon.core.math.Equation;

/**
 *
 * @author Daniel Owens
 */
public class SavingThrow {

    //this is actually the oposite value of the wording in the code.
    private boolean none = false;
    private Equation negates, partial, half, disbelief;

    public SavingThrow() {}

    public void setNegates(Equation value) {
        this.negates = value;
    }

    public Equation getNegates() {
        return this.negates;
    }

    public void setPartial(Equation value) {
        this.partial = value;
    }

    public Equation getPatial() {
        return this.partial;
    }

    public void setHalf(Equation value) {
        this.half = value;
    }

    public Equation getHalf() {
        return this.half;
    }

    public void setDisbelief(Equation value) {
        this.disbelief = value;
    }

    public Equation getDisbelief() {
        return this.disbelief;
    }

    public void setSaveable(boolean value) {
        this.none = value ? false : true;
    }

    public boolean isSaveable() {
        return this.none ? false : true;
    }
}